extends layout

block title
    title 首页

block extraStyles
    link(rel="stylesheet", href="/static/style/index.css")

block bodyContent
    .view.view-index

        h2 Index Page

        a(href="topic/new") 发帖

        for t in r.page
            a.topic.clearfix(data-id=t._id, data-title=t.title, href="/topic/#{t._id}")
                i.btn-close.pull-right.fa.fa-close
                .title=t.title
                .content=t.content

block extraScripts
    script(src="/static/script/index.js")